package com.kevin.mybatis.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("tb_article")
@Schema(description = "文章")
public class Article implements Serializable {

    @Serial
    private static final long serialVersionUID = 1129496589110730436L;

    @TableId(value = "article_id", type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long articleId;

    @TableField("title")
    @Schema(description = "标题")
    private String title;

    @TableField("org_id")
    @Schema(description = "组织ID")
    private Long orgId;

    @TableField("create_by")
    @Schema(description = "创建人")
    private Long createBy;

}
